package com.kob.backend.controller.user.account;

import com.kob.backend.service.user.account.InfoService;
import com.kob.backend.vo.UserVo;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <pre>{@code
 *
 * }</pre>
 *
 * @author Summerday
 * @date 2023/3/15
 */
@RequestMapping("/user")
@RestController
public class UserController {

    @Resource
    InfoService infoService;

    @GetMapping("/list")
    public Map<String, List<UserVo>> getUsers() {
        return infoService.getUsers();
    }

    @GetMapping("/types")
    public Map<String, Object> getAllUserTypes() {
        return infoService.getTypes();
    }
}
